package com.yning.coroutines.net

import cn.youngning.coroutinedemo.model.Banner
import kotlinx.coroutines.Deferred
import retrofit2.http.GET

/**
 * 类描述:CoroutineDemo...
 * 作者: Wangyw.
 * 创建日期: 2019/11/20.
 */
interface Api {
    /**
     * 获取轮播图
     * http://www.wanandroid.com/banner/json
     */
    @GET("banner/json")
    fun getBanners(): Deferred<List<Banner>>
}